﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HelloMinasan.Domain;
using HelloMinasan.Domain.Dtos;

namespace HelloMinasan.Web.ViewModels
{
    public class MsgListModel
    {
        public int CurrentOffset { get; set; }
        public UserType Source { get; set; }
        public MessageListType Type { get; set; }
        public int NextOffset { get; set; }
        public IEnumerable<MsgModel> Messages { get; set; }

        public int PageSize { get; set; }
        public int CurrentPage { get; set; }
        public int TotalRecords { get; set; }
        public bool IsLastPage { get; set; }
    }

    public class MsgModel
    {
        public int Id { get; set; }
        public string Subject { get; set; }
        public string Body { get; set; }
        public virtual DateTime CreatedTime { get; set; }
        public virtual bool IsRead { get; set; }
        public UserBasicInfoModel User { get; set; }
        public int ReceiverId { get; set; }


    }

    public enum MessageListType
    {
        Inbox,
        Draft,
        Sent
    }
}